//
//  QhFourButtonsCell.m
//  XiJianChui
//
//  Created by aaa on 16/7/18.
//  Copyright © 2016年 FanShuHan. All rights reserved.
//

#import "QhFourButtonsCell.h"
#import "PushRequireViewController.h"
#import "NearByViewController.h"
@interface QhFourButtonsCell() <UIGestureRecognizerDelegate>

@property (weak, nonatomic) IBOutlet UIButton *pushRequireBtn;
@property (weak, nonatomic) IBOutlet UIButton *showGoodBtn;
@property (weak, nonatomic) IBOutlet UIButton *nearByStylistBtn;
@property (weak, nonatomic) IBOutlet UIButton *nearByBusinessBtn;
@property (weak, nonatomic) IBOutlet UILabel *pushRequireLabel;
@property (weak, nonatomic) IBOutlet UILabel *showGoodsLabel;
@property (weak, nonatomic) IBOutlet UILabel *nearByStylistLabel;
@property (weak, nonatomic) IBOutlet UILabel *nearByBusinessLabel;

@end
@implementation QhFourButtonsCell

- (void)awakeFromNib {
    
    [super awakeFromNib];
    [self.pushRequireBtn addTarget:self action:@selector(pushRequireClick) forControlEvents:UIControlEventTouchUpInside];
    [self.showGoodBtn addTarget:self action:@selector(showGoodClick) forControlEvents:UIControlEventTouchUpInside];
    [self.nearByStylistBtn addTarget:self action:@selector(nearByStylistClick) forControlEvents:UIControlEventTouchUpInside];
    [self.nearByBusinessBtn addTarget:self action:@selector(nearByBusinessClick) forControlEvents:UIControlEventTouchUpInside];
}

#pragma mark - Click Action
- (void)pushRequireClick
{
    [[NSNotificationCenter defaultCenter] postNotificationName:@"pushRequireBtnClick" object:nil];
    
}

- (void)showGoodClick
{
    [[NSNotificationCenter defaultCenter] postNotificationName:@"showGoodsViewControllerBtnClick" object:nil];
}

- (void)nearByStylistClick
{
    [[NSNotificationCenter defaultCenter] postNotificationName:@"nearByStylistViewControllerBtnClick" object:nil];
}

- (void)nearByBusinessClick
{
    [[NSNotificationCenter defaultCenter] postNotificationName:@"nearByBusinessViewControllerBtnClick" object:nil];
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
